Cationic azo dyestuffs containing oxyalkylene substituent

ABSTRACT

Cationic dyestuffs of the formula 
     
         [(D--N═N--K) (--R).sub.n ].sup.m⊕ m An⊖ 
    
     wherein 
     D denotes the radical of a diazo component, 
     K denotes the radical of a coupling component, 
     m and n independently of one another denote 1 or 2, 
     An⊖ denotes an anion and 
     R denotes a radical of the general formulae 
     
         --A--O --(B--O).sub.p --E 
    
     
         --A--O--CO--F--O--(B--O).sub.p --E or 
    
     
         --A--(O--F).sub.p.sbsb.1 --CO--O--(B--O).sub.p --E 
    
     wherein 
     A represents optionally substituted alkylene with 2 to 4 C-atoms or a direct bond, 
     B represents optionally substituted alkylene with 2 to 4 C atoms, 
     E represents hydrogen or optionally substituted alkyl, alkenyl, cycloalkyl, formyl, alkylcarbonyl or alkenylcarbonyl or optionally substituted phenylcarbonyl, phenylalkylcarbonyl, phenoxyalkylcarbonyl, phenylalkyl or phenyl, 
     F represents alkylene, 
     p represents 1-3 and 
     p 1  represents 0 or 1, 
     at least one of the radicals A or B represents substituted alkylene 
     possess good coloristic properties. The dyestuffs are characterized by good water solubility, good fastness to light and to wet processing and have affinity to fibers, as well as good migrating capacity and substantial insensitivity to thiocyanate ions.

As a further development of the inventive concept of Patent Application No. P 25 08 884.0 (German Offenlegungsschrift No. 2 508 884) it has now been found that dyestuffs of the general formula

    [(D--N═N--K) (--R).sub.n ].sup.m⊕ mAn.sup.⊖(I)

wherein

D denotes the radical of a diazo component,

K denotes the radical of a coupling component,

m and n independently of one another denote 1 or 2,

An.sup.⊖ denotes an anion and

R denotes a radical of the general formulae

    --A--O--(B--O).sub.p --E                                   (II)

    --A--O--CO--F--O--(B--O).sub.p --E                         (III)

or

    --A--(O--F).sub.p.sbsb.1 --CO--O--(B--O).sub.p --E         (IV)

wherein

A represents an optionally substituted alkylene radical with 2 to 4 C atoms or a direct bond,

B represents an optionally substituted alkylene radical with 2 to 4 C atoms,

E represents hydrogen or an optionally substituted alkyl, alkenyl, cycloalkyl, formyl, alkylcarbonyl or alkenylcarbonyl radical or an optionally substituted phenylcarbonyl, phenylalkylcarbonyl, phenoxyalkylcarbonyl, phenylalkyl or phenyl radical,

F represents an alkylene radical,

p represents 11-3 and

p₁ represents 0 or 1,

and wherein

at least one of the radicals A or B represents a substituted alkylene radical,

possess good coloristic properties.

The radicals R are preferably bonded to a ring carbon atom or to a nitrogen atom of an aminocarbonyl, amino or ammonium group.

Preferred ring carbon atoms, to which R is bonded, are members of an aromatic-carboxycyclic or aromatic-heterocyclic radical, and preferably of a benzene ring, which is linked to the azo bridge.

The cationic charge can be a constituent either of D or of K. The radical F can be linked both to D and to K.

The alkyl radicals mentioned under E can be substituted, for example, by a cyano, halogen or C₁ -C₄ -alkoxy radical. The phenyl radicals can be substituted, for example, by 1 or 2 C₁ -C₄ -alkyl or C₁ -C₄ -alkoxy radical or halogen atoms.

In E, the alkyl and alkylene radicals preferably contain 1 to 6 C atoms and the alkenyl and alkenylene radicals contain 2 to 6 C atoms and can be straight-chain or branched. Cycloalkyl in particular represents cyclopentyl and cyclohexyl which are optionally substituted by methyl.

The radicals A and B are, in particular, substituted by halogen, preferably chlorine; hydroxyl, C₁ -C₄ -alkoxy or C₁ -C₄ -alkoxycarbonyl. If they are substituted, A and B are in particular in the form of the 1,3-propylene radical.

Preferred radicals R are those of the formulae

    --A.sub.1 --O--(B.sub.1 --O).sub.p --E.sub.1               (V)

    --A.sub.1 --O--CO--F.sub.1 --O--(B.sub.1 --O).sub.p --E.sub.1 (VI)

and

    --A.sub.1 --(O--F.sub.1).sub.p.sbsb.1 --CO--O--(B.sub.1 --O).sub.p --E.sub.1                                                 (VII)

wherein

A₁ represents a direct bond, 1,2-ethylene or 1,3-propylene which is optionally substituted by chlorine, hydroxyl or acetoxy,

B₁ represents 1,2-ethylene or 1,3-propylene which is optionally substituted by chlorine, hydroxyl or acetoxy,

E₁ represents hydrogen, C₁ -C₄ -alkyl, phenyl, C₁ -C₄ -alkylcarbonyl, formyl or benzoyl,

F₁ represents C₁ - or C₂ -alkylene,

p represents 1 to 3 and

p₁ represents 0 or 1.

The radical of the formulae (II) or (V) are particularly preferred.

Amongst these radicals, those in which E or E₁ represents a C₁ -C₄ -alkyl or phenyl radical and wherein p represents 1 or 2 when A or A₁ denotes a direct bond, or p represents 1 when A or A₁ denotes alkylene are to be mentioned in particular.

D represents the radical of an aromatic-carbocyclic or aromatic-heterocyclic diazo component, especially a radical of the benzene, thiazole, benzthiazole, benzisothiazole, thiadiazole, pyrazole, indazole, imidazole, benzimidazole, triazole, benztriazole, pyridine, pyrazolopyridine, quinoline or benzoxazole series.

K represents the radical of an aromatic-carbocyclic or aromatic-heterocyclic coupling component, above all the radical of a coupling component of the benzene, naphthalene, indole, dihydroindole, pyrazole, pyrazolone, indazole, imidazole, benzimidazole, benztriazole, benzisothiazole, benzthiazole, tetrahydroquinoline, acetoacetic acid ester, acetoacetic acid amide, cyanoacetic acid ester, cyanoacetic acid amide or malonodinitrile series.

The radicals of diazo components of the aromatic-carbocyclic series are understood as, preferably, the radicals of the formula ##STR1## wherein q represents 1 to 5 and

R₁ represents identical or different radicals and represents C₁ -C₄ -alkyl which is optionally substituted by halogen, or nitro, C₁ -C₄ -alkoxy, C₁ -C₃ -alkylcarbonylamino or -sulphonylamino, halogen, cyano, C₁ -C₄ -alkylsulphonyl, or aminocarbonyl or aminosulphonyl which are optionally substituted by C₁ -C₄ -alkyl, or phenyl, benzyl or benzoyl or represents R, or

one of the radicals R₁ represents ##STR2## wherein W represents C₂ -C₄ -alkylene, --CH₂ --CO--, --C₂ H₄ --CO--, --CH₂ --CONH--, --C₂ H₄ --O--, --C₂ H₄ --CONH--, --C₂ H₄ --O--CO--, --C₃ H₆ --OCO--, --C₃ H₆ --NHCO--, --S--, --C₂ H₄ --NHSO₂ --, --C₃ H₆ --NHSO₂ --, --C₂ H₄ --O--C₂ H₄ --, --CH₂ --CO--CH₂ --, --NH--, --N(C₁ -C₄ --alkyl)--, or a direct bond,

R₂ represents identical or different radicals and denotes hydrogen, R, C₁ -C₆ -alkyl or C₂ -C₆ -alkenyl which are optionally substituted by halogen, cyano, aminocarbonyl, hydroxyl, C₁ -C₄ -alkoxy, C₁ -C₃ -alkoxycarbonyl, C₁ -C₃ -alkylcarbonyloxy or phenoxy, or benzyl or phenylethyl which are optionally substituted by halogen, C₁ -C₄ -alkoxy, C₁ -C₄ -alkyl or R, it being possible for two radicals R₂ conjointly also to denote tetramethylene, pentamethylene or 3-aza- or 3-oxapentamethylene and it being possible for one radical R₂ also to denote N(R₂)₂,

R₃ denotes identical or different radicals and represents R, hydrogen, C₁ -C₄ -alkyl, C₁ -C₄ -alkoxy, C₁ -C₃ -alkylcarbonylamino, C₁ -C₃ -alkylsulphonylamino, or phenyl or phenoxy which are optionally substituted by R, C₁ -C₄ -alkyl or C₁ -C₄ -alkoxy, or nitro, cyano, halogen, aminocarbonyl, aminosulphonyl, benzoyl, C₁ -C₃ -alkylcarbonyl or C₁ -C₃ -alkylsulphonyl and

R₄ represent identical or different radicals and denotes hydrogen, R, C₁ -C₄ -alkyl or C₃ -C₄ -alkenyl which are optionally substituted by halogen, cyano, aminocarbonyl, hydroxyl, C₁ -C₄ -alkoxy, C₁ -C₃ -alkoxycarbonyl, C₁ -C₃ -alkylcarbonyloxy or phenoxy, or benzyl or phenylethyl which are optionally substituted by halogen, C₁ -C₄ -alkyl, C₁ -C₄ -alkoxy or R, and n represents 1 or 2,

with the proviso that A preferably represents alkylene when R₂ and R₄ represent the radical II and that A represents alkylene when R₂ or R₄ represent the radicals III or IV.

A radical of a diazo component of the aromatic-heterocyclic series is understood as, preferably, the following radicals:

1. Radicals which are bonded to the azo bridge via a fused benzene ring and having the formulae ##STR3## wherein R₄ ' represents R or C₁ -C₄ -alkyl or C₃ -C₄ -alkenyl which are optionally substituted by halogen, cyano, aminocarbonyl, hydroxyl, C₁ -C₄ -alkoxy, C₁ -C₃ -alkoxycarbonyl, C₁ -C₃ -alkylcarbonyloxy or phenoxy, or benzyl or phenylethyl which are optionally substituted by halogen, C₁ -C₄ -alkyl or C₁ -C₄ -alkoxy.

2. Radicals which are free from quaternary ring nitrogen atoms and have the formulae ##STR4##

3. Radicals which contain a quaternary ring nitrogen atom and having the formulae ##STR5##

A radical of a coupling component of the aromatic-carbocyclic series is understood as, preferably, radicals of the formulae ##STR6## wherein R₆ has the same meaning as R₂ or represents a radical of the formula ##STR7## wherein W₁ represents a direct bond or a straight-chain or branched C₂ -C₅ -alkylene radical and

R₇ represents R, hydrogen, C₁ -C₅ -alkyl, C₁ -C₄ -alkoxy, phenoxy, benzyloxy, halogen, C₁ -C₃ -alkyl-carbonylamino or -sulphonylamino, C₁ -C₃ -alkoxycarbonylamino or benzoyl- or phenyl-sulphonylamino,

R₂ and R₆, conjointly with W₁ and the nitrogen atoms to which they are bonded, can form a piperazine ring, the ring G, conjointly with the fused benzene ring, forms a naphthalene or tetrahydronaphthalene ring, R₂ and n have the abovementioned meaning and

R₈ represents R, hydrogen, halogen, C₁ -C₄ -alkyl, p-aminophenylazo or amino which is optionally substituted by C₁ -C₄ -alkyl.

A radical of a coupling component of the aromatic-heterocyclic series is understood as, preferably, the following radicals:

1. Radicals which are bonded to the azo bridge via a fused benzene ring and have the formulae ##STR8## wherein W₂ denotes ethylene or propylene which are optionally substituted by C₁ -C₄ -alkyl and

R₃ and R₄ ' have the abovementioned meaning, and

2. Radicals which are bonded to the azo bridge via a heterocyclic ring and have the formulae ##STR9## wherein R₉ represents C₁ -C₄ -alkyl, C₁ -C₃ -alkoxycarbonyl, aminocarbonyl or R,

R₁₀ represents R₂, phenyl which is optionally substituted by halogen or C₁ -C₄ -alkyl, or R,

R₁₁ represents OH or NH₂,

R₁₂ represents C₁ -C₄ -alkyl or phenyl,

R₁₃ represents C₁ -C₄ -alkyl and

R₁₄ represents hydroxyl or N(R₂)₂ and

R₂, R₃ and R₄ have the abovementioned meaning.

Preferred dyestuffs are those of the formula ##STR10## wherein D denotes the radical of a diazo component of the benzene, benzthiazole, benzisothiazole, 1,3,4-thiadiazole-(2), 1,2,4-thiadiazole-(5), 1,3-thiazole-(2), pyridine-(2) or pyridine-(4) series and

W₁ denotes a straight-chain or branched C₂ -C₅ -alkylene radical,

R₆ denotes hydrogen, R, a C₁ -C₆ -alkyl radical, which can be substituted by chlorine, bromine, cyano, hydroxyl, C₁ -C₄ -alkoxy, C₁ -C₄ -alkoxycarbonyl or C₁ -C₄ -alkylcarbonyloxy, or a C₃ - or C₄ -alkenyl radical or a radical of the formula ##STR11## R₂ has the abovementioned meaning or R₆ ', conjointly with N--W₁ --N--R is a piperazine ring

and wherein

the ring B can be substituted by R, C₁ -C₅ -alkyl, C₁ -C₄ -alkoxy, halogen, phenoxy, benzyloxy, C₁ -C₃ -alkylcarbonylamino or -sulphonylamino, C₁ -C₃ -alkoxycarbonylamino, benzoylsulphonylamino or phenylsulphonylamino and

An.sup.⊖ denotes an anion,

and wherein

at least one radical R is present.

Dyestuffs of the formula VIII wherein D represents a phenyl radical which can be substituted by 1 to 4 of the following radicals: C₁ -C₄ -alkyl, cyclohexyl, phenyl which is optionally substituted by C₁ -C₄ -alkyl, cyano, chlorine, bromine, nitro or C₁ -C₄ -alkoxy, C₁ -C₄ -alkoxy, benzyloxy, phenoxy, fluorine, chlorine, bromine, iodine, cyano, nitro, C₁ -C₄ -alkylcarbonyl, benzoyl, C₁ -C₄ -alkylsulphonyl, phenylsulphonyl, p-toluylsulphonyl, fluoromethyl, difluoromethyl, trifluoromethyl, trichloromethyl, C₁ -C₄ -alkoxycarbonyl, aminocarbonyl, aminosulphonyl which is optionally substituted by methyl, or C₁ -C₄ -alkylcarbonyloxy, C₁ -C₄ -alkyl-carbonylamino or -sulphonylamino, benzoylamino, phenylsulphonylamino, phenylazo, naphthylazo or R, or represents radicals of the formulae ##STR12## in which a nitrogen atom can be quaternised by R₂ and in which the rings a can be substituted by C₁ -C₄ -alkyl, C₁ -C₄ -alkoxy, chlorine, bromine, nitro, cyano, C₁ -C₄ -alkyl-carbonyl or -sulphonyll, C₁ -C₄ -alkoxycarbonyl, amino-carbonyl or -sulphonyl, C₁ -C₄ -alkylcarbonyloxy, C₁ -C₄ -alkyl-carbonylamino or -sulphonylamino or R and the rings b can be substituted by nitro, cyano, C₁ -C₆ -alkyl, cyclohexyl, phenyl which is optionally substituted by C₁ -C₄ -alkyl, C₁ -C₄ -alkoxy, chlorine, nitro, C₁ -C₄ -alkoxycarbonyl, C₁ -C₄ -alkylamino, acetylamino, phenoxy or acetyl, or benzyl, C₁ -C₄ -alkoxy, phenoxy, cyclohexyloxy, C₁ -C₄ -alkoxycarbonyl, C₁ -C₁₂ -alkylmercapto, phenylmercapto, benzylmercapto, C₁ -C₄ -alkylsulphonyl, benzylsulphonyl, di-C₁ -C₄ -alkylamino, pyrrolidino, piperidino, dibenzylamino, diphenylamino, benzyloxy, furyl or R, are particularly worthy of mention.

Amongst the dyestuffs VIII, those in which the radical R is bonded to the quaternary nitrogen atom and represents the preferred radicals V to VII are also to be singled out.

Particularly preferred dyestuffs of the formula VIII are those of the formula ##STR13## in which D₁ represents radicals of the formulae ##STR14## wherein R₁ ' are identical or different and represent methyl, cyano, nitro, methylsulphonyl, chlorine or bromine,

q represents 0, 1, 2 or 3,

R₂ ' represents methyl, ethyl, allyl or methallyl,

R₆ " represents methyl or ethyl,

R₇ ' represents hydrogen or methyl,

R' represents

    --A.sub.1 --O--B.sub.1 --O--E.sub.2

    --A.sub.1 --O--CO--F.sub.1 --O--B.sub.1 --O--E.sub.2 or

    --A.sub.1 --COO--B.sub.1 --O--E.sub.2

in which

E₂ =C₁ -C₄ -alkyl, or represents phenyl and

An.sup.⊖ represents an anion.

Further preferred dyestuffs of the formula I are dyestuffs of the formula ##STR15## wherein R₂ and An.sup.⊖ have the abovementioned meaning,

Z represents a C₁ -C₃ -alkylene radical,

K₁ represents a coupling component of the benzene, naphthalene, indole, pyrazolone or aminopyrazole series and

m represents 0 or 1,

and wherein

ring B can be substituted by 1 or 2 of the following radicals: C₁ -C₄ -alkyl, C₁ -C₄ -alkoxy, C₁ -C₄ -alkylsulphonyl, halogen, cyano, nitro or R,

and wherein

at least one radical R is present.

Amongst these dyestuffs, in turn, those in which K₁ represents the following radicals: ##STR16## are to be mentioned.

In these radicals, R₂, R₃, R₇ to R₁₂ and n have the abovementioned meaning.

Amongst the dyestuffs X, those in which the radical R is bonded to the quaternary nitrogen atom and represents the preferred radicals V to VII are to be singled out.

Particularly preferred dyestuffs of the formula X are dyestuffs of the formula ##STR17## in which R₂ ' represents methyl, ethyl, allyl or methallyl,

R₆ " represents hydrogen, methyl, ethyl, cyanoethyl or allyl,

R₇ ' represents hydrogen, methyl or chlorine,

R' represents

    --A.sub.1 --O--B.sub.1 --O--E.sub.2

    --A.sub.1 --O--CO--F.sub.1 --O--B.sub.1 --O--E.sub.2 or

    --A.sub.1 --COO--B.sub.1 --O--E.sub.2

in which

E₂ =C₁ -C₄ -alkyl, or represents phenyl and

An.sup.⊖ represents an anion.

Dyestuffs of the formula ##STR18## wherein the symbols have the abovementioned meaning

and wherein

at least one radical R is present,

are also preferred dyestuffs of the formula I.

Amongst the dyestuffs XII, the dyestuffs of the formula ##STR19## wherein R₃ ' denotes hydrogen, methoxy, ethoxy or acetylamino,

R₄ " denotes methyl or ethyl,

R₆ '" denotes methyl, ethyl, cyanoethyl or allyl,

R₇ " denotes hydrogen or methyl and

R' and An.sup.⊖ have the abovementioned meaning,

are preferred.

Dyestuffs of the formula ##STR20## wherein R₂, R₃, R₇, n and An.sup.⊖ have the abovementioned meaning and

R₄ ' represents R or C₁ -C₄ -alkyl or C₃ -C₄ -alkenyl which are optionally substituted by halogen, cyano, aminocarbonyl, hydroxyl, C₁ -C₄ -alkoxy, C₁ -C₃ -alkoxycarbonyl, C₁ -C₃ -alkylcarbonyloxy or phenoxy, or benzyl or phenylethyl which are optionally substituted by halogen, C₁ -C₄ -alkyl or C₁ -C₄ -alkoxy,

and wherein

at least one radical R is present,

are also preferred dyestuffs of the formula I.

Amongst the dyestuffs XIV the dyestuffs of the formula ##STR21## wherein R', R₄ ", R₆ ", R₇ ' and An⁻ have the abovementioned meaning,

are preferred.

Dyestuffs of the formula ##STR22## wherein R₂, R₃, R₄ ', R₇, n and An.sup.⊖ have the abovementioned meaning, and

P represents N or C--Q,

in which

Q=hydrogen, C₁ -C₄ -alkyl or phenyl,

and wherein

at least one radical R is present,

are also preferred dyestuffs of the formula I.

Amongst the dyestuffs XVI, dyestuffs of the formula ##STR23## wherein P₁ denotes N or CH and

R₃ " denotes hydrogen, methyl, trifluoromethyl, methoxy or chlorine and

the other symbols have the abovementioned meaning,

are preferred.

Dyestuffs of the formula ##STR24## wherein the symbols have the abovementioned meaning,

and wherein

at least radical R is present,

are also preferred dyestuffs of the formula I.

Amongst the dyestuffs XVIII, dyestuffs of the formula ##STR25## wherein R₃ '" denotes hydrogen, methyl, methoxy or nitro and the other symbols have the above meaning,

are preferred.

The invention also relates to processes for the preparation of dyestuffs of the formula I by known methods customary in dyestuff chemistry.

The dyestuffs I can be prepared by reacting compounds of the formula

    R--X                                                       (XX)

wherein

R has the abovementioned meaning and

X represents a radical which is split off from R under the reaction conditions,

with dyestuffs of the formula

    [D--N═N--K].sup.m.spsp.⊕ mAn.sup.⊖         (XXI)

or their non-quaternised precursors of the formula

    D--N═N--K                                              (XXII)

or their optionally quaternised precursors of the formulae

    D--NH.sub.2                                                (XXIII)

or

    HK                                                         (XXIV)

and where appropriate by subsequent quaternisation and/or diazotisation and coupling.

The radical R can be introduced into the compounds XXI to XXIV by three different routes.

Possibilities for linking and building up the radicals R: ##STR26##

Diazo components of the formula XXIII are described, for example, in German Auslegeschriften (German Published Specifications) Nos. 1,098,642 and 1,644,243, German Offenlegungschrift (German Published Specification) No. 2,057,977, U.S. Pat. Nos. 2,883,373, 3,051,697, 3,101,988, 3,332,930, 3,410,840 and 3,597,412, British Patent Specifications Nos. 1,117,588, 1,125,683, 1,134,175 and 1,342,380, Belgian Patent Specification No. 608,362 and French Patent Specifications Nos. 1,484,099 and 1,505,141.

Coupling components of the formula XXIV are described not only in the abovementioned patent specifications but also, for example, in German Auslegeschriften (German Published Specifications) Nos. 1,243,299, 1,297,255, 1,544,593, 2,054,697, 2,107,798, 2,209,208 and 2,209,209, U.S. Pat. No. 3,344,133, French Patent Specification No. 1,211,449 and Belgian Patent Specifications Nos. 548,936 and 706,104.

The quaternisation of the dyestuffs XXII, of the diazo component XXIII, of the coupling component XXIV or of the dyestuffs of the formula

    (D--N═N--K)(--R).sub.n                                 (XXV)

is carried out in accordance with known methods in organic or aqueous solution or suspension at 5°-100° C. Examples of suitable organic solvents are chlorobenzene, toluene, carbon tetrachloride, dimethylformamide, N-methylpyrrolidone or glacial acetic acid.

Quaternising agents which may be mentioned are compounds of the formulae ##STR27## wherein An is to be understood as a radical which eliminates an anion An.sup.⊖ under the reaction conditions.

Examples of suitable quaternising compounds of this nature are alkyl halides, alkenyl halides, aralkyl halides, cycloalkyl halides, dialkyl sulphates, alkyl esters of arylsulphonic acids and other esters of strong mineral acids and organic sulphonic acids with, preferably, lower alkohols. The quaternising agents may be substituted further.

Examples are dimethyl sulphate, diethyl sulphate, methyl chloride, methyl bromide, methyl iodide, methyl sulphate, ethyl bromide, ethyl chloride, n-propyl bromide, n-butyl bromide, allyl chloride, methallyl chloride, 2-chlorodiethyl ether, chloroacetic acid and bromoacetic acid methyl ester, methanesulphonic acid methyl, ethyl and propyl ester, ethylene chlorohydrin,, δ-chloropropionic acid methyl ester, chloroacetonitrile, acetic acid β-chloroethyl ester, benzyl chloride, phenylethyl chloride, phenoxy-β-chloroethyl, butenyl chloride, chloramine, O-methylsulphonylhydroxylamine, O-mesitylenesulphonylhydroxylamine, N,N-dimethylchloramine, hydroxylamine-O-sulphonic acid and also hydrochloric acid, sulphuric acid, methylsulphonic acid, phosphoric acid, formic acid, acetic acid, propionic acid, lactic acid and β-hydroxypropionic acid.

The quaternising agents of the formula XXVIa and XXVIb also include the compounds of the formula

    R--X                                                       (XX)

in which

R represents a radical II-IV,

in which

A denotes an alkylene radical, and

X represents halogen or a C₁ -C₄ -alkyl-, phenyl- or tolyl-sulphonyloxy radical.

Examples of these compounds are: ##STR28##

The compounds XXVIa or XXVIb are also to be understood to include those which in the presence of an acid H-An form the radicals R₂, R₄ and R₅, respectively, with elimination of the anion An.sup.⊖. Examples are acrylic acid and its derivatives, such as acrylonitrile or acrylamide, alkylene oxides, such as ethylene oxide, and vinylpyridines such as 2-vinylpyridine.

Possible anionic radicals An.sup.⊖ are the organic and inorganic anions customary for cationic dyestuffs.

The anion is in general decided by the process of preparation and by any purification of the crude dyestuff which may be carried out. However, the anions can also be exchanged in a known manner for other anions. In general, the dyestuffs are in the form of halides (especially as chlorides, bromides or iodides) or as methosulphates, ethosulphates, sulphates, phosphates, methylsulphonates, benzenesulphonates or toluenesulphonates, formates, acetates, propionates or hydroxypropionates. Colourless anions are preferred.

The following may be mentioned as preferred embodiments of the preparation of the dyestuffs I:

Preparation of dyestuffs VIII by reacting compounds of the formula ##STR29## with amines of the formula

    D--NH.sub.2                                                (XXVIII)

after diazotisation of the latter, and with quaternising agents of the formula XXVIa, in optional sequence.

Preparation of dyestuffs X by reacting compounds of the formula ##STR30## wherein Z₁ denotes hydrogen or acetyl, after diazotisation, with compounds of the formula

    H--K.sub.1

and with quaternising agents XXVIa, in optional sequence.

Preparation of dyestuffs XII by reacting dyestuffs of the formula ##STR31## with the quaternising agents of the formula XXVIc.

Preparation of dyestuffs XIV by reacting dyestuffs of the formula ##STR32## with the quaternising agents of the formula XXVIb.

Preparation of dyestuffs XVI by reacting dyestuffs of the formula ##STR33## with the quaternising agents of the formula XXVIb.

Preparation of dyestuffs XVIII by reacting dyestuffs of the formula ##STR34## with the quaternising agents of the formula XXVIb.

The new dyestuffs can be used for dyeing, printing and bulk dyeing of materials containing acid groups, above all of products which consist entirely or predominantly of polymerised unsaturated nitriles, such as acrylonitrile and vinylidene cyanide, or of acid-modified polyesters or of acid-modified polyamides. The fibres are described, for example in U.S. Pat. Nos. 3,018,272, 3,166,531, 3,039,990 and 3,454,351. The can furthermore be used for the other known uses of cationic dyestuffs, such as dyeing and printing cellulose acetate, tannin-treated cotton and paper, for the preparation of pastes for ballpoint pens, and inks for rubber stamps, and for use in flexographic printing.

The new dyestuffs can be used with particular advantage for dyeing polyacrylonitrile filaments which are obtained in accordance with the wet spinning process.

Dyeing will be carried out in a known manner, from a neutral or weakly acid liquor, at 40°-100° C. or under pressure at above 100° C. It can be carried out with the addition of customary auxiliaries, for example in the presence of retarders or emulsifiers.

When the dyestuffs are used for printing the stated polymers, customary auxiliaries, such as wetting agents and thickeners, are added to the printing inks.

The new dyestuffs exhibit a surprisingly good solubility in water. This permits the preparation of storage-stable, concentrated solutions, which are free from organic solvents and can be marketed, and employed in dyeing and printing processes, in place of dyestuff powders and the hitherto almost exclusively solvent-containing liquid types. It proves possible to prepare storage-stable concentrated solutions containing, for example, 20-70% of dyestuff. The use of these dyestuff solutions instead of dyestuff powders is advantageous because this avoids the objectionable introduction of organic solvents, and of the extenders usually present in the powders, such as dextrin or salts, into dyeing liquors and effluents.

The rate of absorption of the new dyestuffs is not affected adversely in relation to comparable dyestuffs which are substituted by hydrogen or an alkyl group in place of the radical R.

The dyestuffs possess good fastness properties, such as fastness to light and to wet processing, high affinity to the fibre, good migrating capacity and substantial insensitivity to thiocyanate ions which, in the case of industrially important dyeing processes, are frequently carried into the dye baths due to the nature of the process.

EXAMPLE 1

17.25 parts by weight of 2-chloro-4-nitraniline are stirred with 30 parts by weight of water and 50 parts by weight of 30% strength hydrochloric acid for 10 hours to form a paste, and are then diazotised, at 0° to 5° C., with a solution of 7 g of sodium nitrate and 25 cm³ of water. The solution is clarified and combined with a solution of 30.8 parts by weight of the amine ##STR35## in dilute acetic acid, and the mixture is rendered alkaline by slow dropwise addition of sodium hydroxide solution, whilst stirring. The dyestuff which has separated out is filtered off, washed free from salt, or freed from salt by repeated decanting with water, and rendered neutral to weakly acid with dilute acetic acid. A 50% strength aqueous solution of this red dyestuff is stable for months even at 0° C.

If the molar amount of dimethyl sulphate is added whilst stirring at 20° to 40° C., a solution of the dyestuff of the formula ##STR36## of the same colour is obtained. Here again, a 50% strength aqueous solution is stable. The solubility of the corresponding trimethylammonium dyestuff in water is about 1 g/liter at room temperature.

EXAMPLE 2

35.5 g of dyestuffs of the formula ##STR37## 27 g of water and 0.5 g of sodium carbonate are stirred at 80° C. and 20.5 g of substance of the formula ##STR38## are added dropwise in the course of one hour, after which the mixture is stirred for about 15 hours at 80° to 90° C. A mobile red dyestuff solution of the dyestuff of the formula ##STR39## which can be diluted with water in all proportions is obtained.

EXAMPLE 3

The diazo solution from Example 1 is used and 32.7 g of the coupling base of the formula ##STR40## are added, and the mixture is neutralised to pH 7 with sodium hydroxide solution. On addition of sodium chloride, the dyestuff of the formula ##STR41## separates out as a viscous oil. The salt solution is completely decanted, and sufficient water is added to produce a 35% strength solution which is adjusted to pH 4 with a little glacial acetic acid. The solution is stable even at 0° C. If instead of sodium chloride concentrated sodium hydroxide solution is added at 0°-10° C., the oily dyestuff is separated from the aqueous solution and glacial acetic acid added until the pH is 4, a water-miscible dyestuff of lower viscosity, for the same dyestuff content, is obtained.

The coupling base can be obtained by boiling 24 g of the base ##STR42## 14 g of β-(δ-chloro-β-acetoxypropyl)-ethyl methyl ether and 50 cm³ of water for 8 to 10 hours and then saponifying the acetyl group.

The following dyestuffs, which dye polyacrylonitrile in the stated colour shade, are obtained in the same manner ##STR43##

    __________________________________________________________________________                                                                Colour              No.                                                                               D     A  R.sub.1    R.sub.2                                                                           R.sub.3      R.sub.4                                                                               R.sub.5                                                                            R.sub.6                                                                            An.sup.(-)                                                                          shade               __________________________________________________________________________     1  2-Chloro-4- nitrophenyl                                                              C.sub.2 H.sub.4                                                                              CH.sub.3                                                                          CH.sub.3     CH.sub.3                                                                              H   H   Cl.sup.-                                                                            red                 2  2-Chloro-4- nitrophenyl                                                              C.sub.3 H.sub.6                                                                    ##STR44## "  CH.sub.2CHCH.sub.2                                                                          "      "   "   HSO.sub.4.sup.-                                                                     "                   3  2-Chloro-4- nitrophenyl                                                              C.sub.2 H.sub.4                                                                   C.sub.2 H.sub.5                                                                           "                                                                                  ##STR45##   "      "   "   Cl.sup.-                                                                            "                   4  2-Chloro-4- nitrophenyl                                                              C.sub.2 H.sub.4                                                                    ##STR46## "  CH.sub.3     "      "   "   Br.sup.-                                                                            "                   5  2-Chloro-4- nitrophenyl                                                              C.sub.2 H.sub.4                                                                   CH.sub.3   "                                                                                  ##STR47##                                                                                   ##STR48##                                                                            CH.sub.3                                                                           "   Cl.sup.-                                                                            "                   6  2-Cyano- 4-nitro -phenyl                                                             C.sub.2 H.sub.4                                                                   C.sub.2 H.sub.5                                                                           "                                                                                  ##STR49##   CH.sub.3                                                                              H   "   Cl.sup.-                                                                            "                   7  2-Cyano- 4-nitro -phenyl                                                             C.sub.2 H.sub.4                                                                   C.sub.2 H.sub.5                                                                           CH.sub.3                                                                           ##STR50##   CH.sub.3                                                                              H   H   Cl.sup.-                                                                            red                 8  2-Cyano- 4-nitro -phenyl                                                             "  "          "                                                                                  ##STR51##   "      "   "   Cl.sup.-                                                                            red                 9  2-Cyano- 4-nitro -phenyl                                                             "  "          "                                                                                  ##STR52##   "      "   "   Cl.sup.-                                                                            red                 10 2,4- Dicyano- phenyl                                                                 "  "          "                                                                                  ##STR53##   "      "   "   Cl.sup.-                                                                            red                 11 3,4- Dicyano- phenyl                                                                 "  "          "                                                                                  ##STR54##   "      OCH.sub.3                                                                          "   Cl.sup.-                                                                            orange              12 3,4- Dicyano- phenyl                                                                 C.sub.2 H.sub.4                                                                   C.sub.2 H.sub.5                                                                           CH.sub.3                                                                           ##STR55##   CH.sub.3                                                                              OCH.sub.3                                                                          OCH.sub.3                                                                          Cl.sup.-                                                                            orange              13 2-Cyano-5- chloro- phenyl                                                            "  "          "                                                                                  ##STR56##   "      H   H   Cl.sup.-                                                                            "                   14 2,6-Di- chloro-4- nitrophenyl                                                        "  "          "                                                                                  ##STR57##   "      "   "   Cl.sup.-                                                                            brown               15 2,6-Di- chloro-4- nitrophenyl                                                        C.sub.4 H.sub.8                                                                   "          "                                                                                  ##STR58##   "      "   "   Cl.sup.-                                                                            "                   16 2,6-Di- chloro-4- nitrophenyl                                                        C.sub.2 H.sub.4                                                                   "          "                                                                                  ##STR59##   "      "   "   Cl.sup.-                                                                            "                   17 2,5-Di- chloro-4- methyl- amino- sulphonyl- phenyl                                   C.sub.2 H.sub.4                                                                   C.sub.2 H.sub.5                                                                           CH.sub.3                                                                           ##STR60##   CH.sub.3                                                                              H   H   Cl.sup.-                                                                            orange              18 4-Methyl                                                                             "  "          "  (C.sub.2 H.sub.4O).sub.3H                                                                   "      "   "   Cl.sup.-                                                                            "                      sulpho-                                                                        nyl-2-                                                                         chloro-                                                                        phenyl                                                                      19 4-Methyl- sulpho- nyl-2- chloro- phenyl                                              "  "          "                                                                                  ##STR61##   "      Cl  H   Cl.sup.-                                                                            "                   20 3-Phenyl- 1,2,4- thiadi- azolyl(5)                                                   "  "          "                                                                                  ##STR62##   NH.sub.2                                                                              H   "   H.sub.2 PO.sub.4.sup                                                           .-   red                 21 3-Phenyl- 1,2,4- thiadi- azolyl(5)                                                   "  "          "                                                                                  ##STR63##   CH.sub.3                                                                              "   "   "    "                   22 3-Phenyl- 1,2,4- thiadi- azolyl(5)                                                   "  "          "                                                                                  ##STR64##   "      CH.sub.3                                                                           "   "    "                   23 3-Phenyl- 1,2,4- Thiadi- azolyl(5)                                                   C.sub.2 H.sub.4                                                                   C.sub.2 H.sub.5                                                                           CH.sub.3                                                                           ##STR65##   CH.sub.3                                                                              H   H   H.sub.2 PO.sub.4.sup                                                           .-   red                 24 5-Nitro- 1,3- thiazolyl(2)                                                           "  "          "                                                                                  ##STR66##   "      "   "   HSO.sub.4.sup.-                                                                     "                   25 5-Nitro- 1,3- thiazolyl(2)                                                           C.sub.3 H.sub.6                                                                   "          C.sub.2 H.sub.5                                                                    ##STR67##   C.sub.2 H.sub.5                                                                       CH.sub.3                                                                           "   "    violet              26 2,4- Dinitro- phenyl                                                                 C.sub.2 H.sub.4                                                                   "          CH.sub.3                                                                           ##STR68##   CH.sub.3                                                                              "   "   "    red                 27 2,5- Dichloro-4- cyanophenyl                                                         "  "          "                                                                                  ##STR69##   "      H   "   Cl.sup.-                                                                            scarlet             28 4-Benzoyl- phenyl                                                                    "  "          "                                                                                  ##STR70##   "      "   "   Cl.sup.-                                                                            yellow              29 4-Benzoyl- phenyl                                                                    C.sub.2 H.sub.4                                                                   C.sub. 2 H.sub.5                                                                          CH.sub.3                                                                           ##STR71##   CH.sub.3                                                                              H   H   Cl.sup.-                                                                            yellow              30 4-Benzoyl- phenyl                                                                    "  "          "                                                                                  ##STR72##   "      "   "   Cl.sup.-                                                                            "                   31 2-Cyano- 4-nitro- phenyl                                                             "  "          "                                                                                  ##STR73##   "      "   "   Cl.sup.-                                                                            red                 32 2-Cyano- 4-nitro- phenyl                                                             "  "          "                                                                                  ##STR74##   "      "   "   Cl.sup.-                                                                            "                   __________________________________________________________________________

EXAMPLE 4

28.5 g of the diazo component of the formula ##STR75## are dissolved in dilute hydrochloric acid and diazotised at 0° C. by addition of 7 g of sodium nitrite. After about 30 minutes, excess nitrite is removed by adding a little sulphamic acid, a solution of 13.1 g of 2-methylindole, dissolved in glacial acetic acid, is added dropwise whilst stirring, and the mixture is slowly neutralised to pH 5-6 with sodium hydroxide solution. After completion of the reaction, the mixture is rendered alkaline with sodium hydroxide solution, the salt solution is decanted off the dyestuff which has precipitated, and the dyestuff is washed free from salt and brought to pH 4 with water and glacial acetic acid, the amounts being chosen so as to give an approximately 40% strength yellow solution of the dyestuff of the formula ##STR76##

EXAMPLE 5

38 g of the compound ##STR77## are boiled in about 10% strength aqueous hydrochloric acid for 1/2 hour and are then processed further as in Example 1, using a solution of 16.3 g of diethyl-m-toluidine in aqueous hydrochloric acid. A highly concentrated aqueous solution of a red dyestuff of the formula ##STR78## is obtained.

EXAMPLE 6

21.4 parts of 1-acetylamino-4-chloroacetylbenzene are reacted at room temperature with an aqueous solution of the compound ##STR79## for 24 hours whilst stirring, 4 g of sodium hydroxide are added, the excess amine is removed in vacuo, about 100 cm³ of water are added and about 15 g of dimethyl sulphate are added dropwise at 70°-90° C. From three onwards, the procedure followed is as in Example 5. A highly concentrated red solution of the dyestuff of the formula ##STR80## is again obtained.

The dyestuffs of the formula ##STR81## shown in the table are also obtained in accordance with the methods of Examples 4 and 5.

      No.   R.sub.1 R.sub.2 R.sub.3 Z D       K An Colour shade                              1       ##STR82##       CH.sub.3 CH.sub.2CHCH.sub.2       ##STR83##       ##STR84##       ##STR85##       Cl.sup.- violet 2       ##STR86##       " CH.sub.3 CH.sub.2       ##STR87##       ##STR88##       "  red 3       ##STR89##       " " "       ##STR90##       ##STR91##       Br.sup.- orange 4       ##STR92##       " " " "       ##STR93##       Cl.sup.- yellow 5 CH.sub.3 " " " "       ##STR94##       " red 6 " CH.sub.3 " CH.sub.2 "       ##STR95##       " " 7 C.sub.2 H.sub.5 C.sub.2 H.sub.5 C.sub.2       H.sub.5 " "      ##STR96##       " " 8       ##STR97##       CH.sub.3 CH.sub.3 " "       ##STR98##       " " 9 CH.sub.2CHCH.sub.2 " " " "       ##STR99##       " " 10       ##STR100##       " " " "       ##STR101##       " yellow 11       ##STR102##       " " " "       ##STR103##       " red 12       ##STR104##       " " " "       ##STR105##       " "

EXAMPLE 7

90 g of 6-methoxy-2-aminobenzthiazole are dissolved in a mixture of 350 g of glacial acetic acid and 150 g of propionic acid at 20° C. (duration about 1/2 hour). The mixture is then cooled to 0° C. and 55 cm³ of nitrosylsulphuric acid (100 cm³ contain 42 g of nitrite) are added dropwise in the course of one hour at 0° to -3° C., with good stirring. In the course thereof, the temperature should not fall below -3° C. The resulting diazo solution is poured, whilst stirring, into a solution of 11.5 g of the base of the formula ##STR106## in 1,700 cm³ of water, 33 cm³ of concentrated sulphuric acid and 700 g of ice. The temperature is kept at 0° C. The mixture is then neutralised with 280 cm³ of 45% strength sodium hydroxide solution. The temperature is kept below 5° C. by adding a further 700 g of ice. Stirring is continued overnight and the dyestuff is then filtered off and washed until neutral. The resulting red dyestuff can be quaternised in the following ways:

(a) 207 g of the dyestuff are introduced into 250 cm³ of dimethylformamide whilst stirring at 75° to 80° C., and 75 g of dimethyl sulphate are added. Hereupon, the colour shade changes from red to blue. 120 g of dimethylformamide are then distilled off in vacuo at 15 mm Hg. The residue is cooled to 20° C., whilst stirring, and 325 cm³ of toluene are added slowly in the course of 1/2 hour. Hereupon, the dyestuff precipitates. Stirring is then continued overnight, after which the product is thoroughly suction-drained or the liquor is decanted, and the product is rinsed with 75 cm³ of toluene. The dyestuff has the formula: ##STR107## Adhering residues of toluene are removed by drying in vacuo or by blowing off with steam. The dyestuff goes pasty on addition of even a little water. Equal parts of dyestuff and water give a solution which is also readily stable and which is best rendered slightly acid with a little acetic acid. Solutions containing more than 50% of dyestuff can also be prepared. To prepare a powder formulation, an aqueous solution, adjusted to pH 5, is provided with the desired amount of extender, for example dextrin, and is then spray-dried. The formulation can also be produced by grinding the dyestuff with dextrin.

(b) 207 g of the dyestuff are introduced into 1,000 cm³ of chlorobenzene whilst stirring at 80° to 90° C., a few cm³ of chlorobenzene are distilled off until no further water passes over, and 78 g of dimethyl sulphate are added. The mixture is stirred for about 8 hours at 90° to 95° C. Hereupon, the colour shade changes from red to blue and the reaction product precipitates. The chlorobenzene is distilled off in vacuo in order to remove the excess dimethyl sulphate, and the remainder is then blown off with steam in vacuo. The aqueous dyestuff solution which remains can, as described under (a), be used as such or be converted to a powder dyestuff by spray drying.

(c) The quaternisation of the dyestuff can also be effected by simultaneous addition of dimethyl sulphate and sodium acetate to the dyestuff, dispersed in water at 0° to 15° C., whilst maintaining a pH value of about 4 to 5.

EXAMPLE 8

41.4 parts of the compound of the formula ##STR108## are dissolved in 460 parts of glacial acetic acid whilst stirring, and the solution is warmed to 40°-45° C. 53 parts of ethylene oxide are passed into the solution in the course of 2 hours and the latter is stirred for a further 3 hours at 50°-60° C. Thereafter, 16 parts of 35% strength hydrochloric acid are added and the glacial acetic acid is distilled off in vacuo. The residue is dissolved in about 200 parts of water and stirred thoroughly with about 5 g of active charcoal, the resulting solution is filtered and the blue dyestuff is salted out with sodium chloride. It separates out as a liquid which is separated from the aqueous phase. The liquid dyestuff thus obtained still contains a little water and is miscible therewith in all proportions. It has the formula ##STR109##

EXAMPLE 9

10 parts in 35% strength hydrochloric acid are added to a mixture of 41.4 parts of the compound of the formula ##STR110## and of 35 parts of acrylamide in 50 parts of glacial acetic acid, and the mixture is stirred at 90° C. for about 2 hours. The glacial acetic acid is then distilled off in vacuo, the residue is dissolved in about 200 parts of water, the mixture is thoroughly stirred with about 5 g of active charcoal and filtered, and the blue dyestuff is salted out with sodium chloride; it separates out as a liquid and is separated off. The resulting dyestuff contains water and is miscible with water in all proportions. It has the formula ##STR111##

The table which follows shows dyestuffs of the formula ##STR112## These can be prepared in accordance with the methods described above.

      No. Q.sub.1 Q.sub.2 Q.sub.3 Q.sub.4 Q.sub.5 Q.sub.6       R An                         1 CH.sub.3 CH.sub.3O H H C.sub.2 H.sub.5 H       ##STR113##       CH.sub.3COO.sup.- 2 " " " " " "       ##STR114##       Cl.sup.- 3 " " CH.sub.3 " CH.sub.3 "       ##STR115##       " 4 " " OCH.sub.3 " C.sub.2       H.sub.4CN "      ##STR116##       CH.sub.3SO.sub.4.sup.- 5 "       ##STR117##       H " C.sub.2       H.sub.5 "      ##STR118##       " 6 "       ##STR119##       " " " "       ##STR120##       " 7 " CH.sub.3O " " " "       ##STR121##       " 8 " " " " " "       ##STR122##       " 9 " " " " " "       ##STR123##       " 10        "      ##STR124##       " " " " C.sub.2 H.sub.5 HSO.sub.4.sup.+ 11        "      ##STR125##       " " " "       " "

EXAMPLE 10

8.4 g of 3-amino-1,2,4-triazole are dissolved in 400 cm³ of water and 20 cm³ of concentrated hydrochloric acid and 7 g of sodium nitrite dissolved in 50 cm³ of water are added dropwise at 0° C. whilst stirring. 16.5 g of the base of the formula ##STR126## dissolved in dilute hydrochloric acid are added, whilst stirring. Thereafter the mixture is neutralised with 45% strength sodium hydroxide solution and the dyestuff which has precipitated is filtered off and dried.

124 g of the dyestuff are introduced into 250 cm³ of dimethylformamide at 75° to 80° C., whilst stirring, and 150 g of dimethyl sulphate are added. Hereupon, the colour shade changes from yellow to red. 120 g of dimethylformamide are then distilled off in vacuo at 15 mm Hg. The residue is cooled to 20° C., whilst stirring, and 325 cm³ of toluene are added slowly in the course of 1/2 hour. Hereupon, the dyestuff precipitates. Stirring is continued overnight, the product is allowed to sediment, the solvent mixture is decanted off, the product is again stirred with toluene, the latter is decanted off and the residual toluene is blown off with steam. A stable dyestuff solution remains, which can be employed, as such, for dyeing. The dissolved dyestuff is miscible with water in all proportions.

The dyestuffs of the formula ##STR127## shown in the table can also be prepared in accordance with these processes. They dye polyacrylonitrile in a red colour shade.

      No. Q.sub.1 Q.sub.3 Q.sub.4 Q.sub.5 Q.sub.6 R' An Q.sub.1       '                        1 CH.sub.3 H H C.sub.2       H.sub.5 H      ##STR128##       Cl.sup.- CH.sub.3 2 C.sub.2 H.sub.5 CH.sub.3 " C.sub.3 H.sub.7 "       ##STR129##        " C.sub.2 H.sub.5 3 CH.sub.3 " " C.sub.2       H.sub.5 "      ##STR130##       " CH.sub.3 4 " H " " "      ##STR131##       CH.sub.3SO.sub.4.sup.- " 5 " " " " "       ##STR132##       " " 6 " " " " "      ##STR133##       " " 7 " " " CH.sub.2CHCH.sub.2      ##STR134##       CH.sub.2CHCH.sub.2       " " 8 CH.sub.3 H H CH.sub.2CHCH.sub.2      ##STR135##       C.sub.2       H.sub.5 CH.sub.3SO.sub.4.sup.- CH.sub.3 9 CH.sub.3 H H      ##STR136##       H       ##STR137##       CH.sub.3SO.sub.4.sup.- CH.sub.3 10 " " " C.sub.2       H.sub.5 H      ##STR138##       " " 11 " " " " "      ##STR139##       " "

EXAMPLE 11

18.15 parts by weight of 5-chloro-1-methylbenzimidazole in 300 parts by volume of water and 60 parts by volume of 5 N hydrochloric acid are diazotised in the usual manner with 20.5 parts by volume of 5 N sodium nitrite solution at 0° to 5° C. The diazo solution is added dropwise to a solution of 23 parts by weight of the base of the formula ##STR140## in 50 parts by weight of glacial acetic acid and 200 parts by volume . . . , whilst stirring, the stirring is continued until the coupling reaction has ended, the mixture is rendered alkaline with sodium hydroxide solution, the aqueous solution is decanted off, the product is washed in the same manner with water until free from salt, 500 parts by volume of toluene are added and the residual water is distilled off azeotropically. 10 parts by volume of dimethyl sulphate are added to the dyestuff solution in toluene, thus obtained, at 90° C., the mixture is stirred until quaternisation is complete, the toluene is blown off with steam and a highly concentrated aqueous dyestuff solution is obtained, which--when adjusted to pH 4--can be used as a liquid formulation or can be converted, with addition of extenders, to a powder formulation, for example by spray drying. The red dyestuff has the formula ##STR141##

EXAMPLE 12

16.9 g of 5-chloro-7-aminobenztriazole are dissolved in 60 cm³ of 78% strength sulphuric acid and diazotised with 16 cm³ of 43.5% strength nitrosylsulphuric acid at about 10° C. in the course of 15 minutes. The mixture is stirred for a further 60 minutes at 10°-20° C. and the diazo solution is then introduced into a mixture of 400 g of ice and 100 cm³ of water, whilst stirring. The excess nitrite is removed by adding amidosulphonic acid. The diazo solution is then clarified with a little kieselguhr and animal charcoal and is stirred into a solution of 23 g of the base of Example 8 in 50 cm³ of glacial acetic acid and 200 g of water. After about 2 hours, the coupling reaction has ended. The mixture is rendered weakly alkaline with sodium hydroxide solution, the salt solution is decanted off, the product is washed in the same manner with water until free from salt, 70 cm³ of dimethylformamide are added, about 15 cm³ are distilled off in vacuo, 8 g of dimethyl sulphate are added and the mixture is warmed to 75°-85° C., whilst stirring, until the quaternisation and alkylation has ended. 25 cm³ of the dimethylformamide are then distilled off at 15 mm Hg. The residue is cooled to 20° C., whilst stirring, and 65 cm³ of toluene are added slowly in the course of 1/2 hour. Hereupon, the dyestuff precipitates. The dimethylformamide/toluene mixture is decanted off, the dyestuff is twice extracted by stirring with toluene in the same manner, and the toluene still remaining after decanting off is blown off with steam in vacuo. A solution of the red-violet dyestuff of the formula ##STR142## remains.

The dyestuffs of the formula ##STR143## shown in the table can also be prepared by this method.

                Colour No. Q.sub.1 Q.sub.3 Q.sub.4 Q.sub.5 Q.sub.8 Q.sub.7 R'      P An shade                   1 CH.sub.3 H H C.sub.2       H.sub.5 Cl CH.sub.3      ##STR144##       CH CH.sub.3 SO.sub.4.sup.- red 2 C.sub.2 H.sub.5 " " " " C.sub.2      H.sub.5       ##STR145##       N C.sub.2       H.sub.5SO.sub.4.sup.- red-violet 3 " " " " " "      ##STR146##       " C.sub.2 H.sub.5SO.sub.4.sup.- red-violet 4 CH.sub.3 CH.sub.3 "      C.sub.2       H.sub.4CN "      ##STR147##       C.sub.2 H.sub.5 CH CH.sub.3 SO.sub.4.sup.- red 5 " " " CH.sub.3 "      CH.sub.3       ##STR148##       " " " 6 " " " " " "       ##STR149##       " " " 7 " " " " " "       ##STR150##       " " " 8 " OCH.sub.3 " " " "       ##STR151##        " " " 9 " H " " " "       ##STR152##       " " orange

EXAMPLE 13

112 parts of 5-nitro-1,2-dimethyl-indazolone-3-hydrazone are coupled, in the presence of sodium chlorite, with 110 parts of the base of the formula ##STR153## The resulting dyestuff, in a total volume of about 2,000 parts of water, is rendered alkaline with sodium bicarbonate, at 55° C. The mixture is allowed to cool, whilst stirring and is stirred for a further 12 hours, the aqueous solution is decanted off, the product is neutralised to pH 4 with dilute aqueous acetic acid and an aqueous solution of a blue dyestuff of the formula ##STR154## is obtained.

EXAMPLE 14

13.3 parts of 3-aminoindazole in 100 parts of water and 50 parts of concentrated hydrochloric acid are diazotised with 6.9 parts of sodium nitrite at 0° to 5° C. and coupled, in acid solution, with 22.3 parts of the base from Example 13. The solution is rendered weakly alkaline with sodium carbonate, the salt solution is decanted off the dyestuff which has precipitated and the dyestuff is freed from the residual salt in the same manner, using water. 70 parts of dimethylformamide are then added, about 15 cm³ are distilled off in vacuo, 8 parts of dimethyl sulphate are added and the mixture is warmed to 75°-85° C., whilst stirring, until the quaternisation and alkylation has ended. Thereafter, 25 parts of dimethylformamide are distilled off at 15 mm Hg. The residue is cooled to 20° C., whilst stirring, and 65 parts of toluene are added in the course of 1/2 hour. The solvent mixture is decanted off the dyestuff which has precipitated, the dyestuff is twice protruded with toluene and the toluene which has remained after decanting is blown off with steam. A dyestuff solution having a red-violet colour remains. The dyestuff has the formula ##STR155## The dyestuffs of the formula ##STR156## shown in the table can also be prepared in accordance with processes 13 and 14.

                 Colour No. Q.sub.1 Q.sub.3 Q.sub.4 Q.sub.5 R.sub.1 R.sub.2      R.sub.3 Q.sub.7 R' An shade                    1 CH.sub.3 NHCOCH.sub.3 H H H H NO.sub.2       ##STR157##       H CH.sub.3       SO.sub.4.sup.- red 2 "      ##STR158##       " " " " " CH.sub.3 " " " 3 " CH.sub.3 " C.sub.2 H.sub.5 " NO.sub.2 H      CH.sub.3       ##STR159##       " blue 4 " H " " " " " "       ##STR160##       " " 5 C.sub.2 H.sub.5 " " " " H " C.sub.2       H.sub.5      ##STR161##       " violet 6 CH.sub.3 " " C.sub.3       H.sub.7 " " " CH.sub.3      ##STR162##       Cl.sup.- " 7 " " " CH.sub.3 " " " "       ##STR163##       "  " 8 " " " C.sub.2       H.sub.5 " " " "      ##STR164##       " " 9 " " " " " " " "       ##STR165##       " "

EXAMPLE 15

A polyacrylonitrile fabric is printed with a printing paste which has been prepared in the following manner:

30 parts of the dyestuff described in Example 1 are covered with 330 parts of hot water and the resulting solution is added to 500 parts of crystal gum (gum arabic as a thickener). Finally, 30 parts of zinc nitrate solution are also added. The resulting print is dried, steamed for 30 minutes and then rinsed. A blue print having very good fastness properties is obtained.

EXAMPLE 16

Acid-modified polyethylene glycol terephthalate fibres are introduced, using a liquor ratio of 1:40, into an aqueous bath, at 20° C., which contains, per liter, 3 to 10 g of sodium sulphate, 0-15 g of dimethylbenzyldodecylammonium chloride and 0.15 g of the dyestuff described in Example 2, and has been adjusted to pH 4-5 with acetic acid. The bath is heated to 100° C. in the course of 30 minutes and is kept at this temperature for 60 minutes. Thereafter, the fibres are rinsed and dried. A blue dyeing having very good fastness properties is obtained.

EXAMPLE 17

Polyacrylonitrile fibres are introduced, using a liquor ratio of 1:40, into an aqueous bath, at 40° C., which contains, per liter, 0.75 g of 30% strength acetic acid, 0.38 g of sodium acetate and 0.15 g of the dyestuff described in Example 1. The bath is heated to the boil in the course of 20-30 minutes and kept at this temperature for 30-60 minutes. After rinsing and drying, a blue dyeing having very good fastness properties is obtained.

EXAMPLE 18

A stock solution is prepared from 15 parts by weight of the dyestuff mentioned in Example 1, 15 parts by weight of polyacrylonitrile and 70 parts by weight of dimethylformamide and is heated to a customary polyacrylonitrile spinning solution and spun in the known manner. A blue dyeing having very good fastness properties is obtained.

EXAMPLE 19

Acid-modified synthetic polyamide fibres are introduced, using a liquor ratio of 1:40, into an aqueous bath, at 40° C., which contains, per liter, 10 g of sodium acetate and 0.3 g of the dyestuff described in Example 1 and has been adjusted to pH 4-5 with acetic acid. The bath is heated to 98° C. in the course of 30 minutes and is kept at this temperature. The fibres are then rinsed and dried. A blue dyeing is obtained. 

I claim:
 1. Cationic dyestuff of the formula

    [(D--N═N--K)(--R).sub.n ].sup.m.sbsp.⊕.sub.m.spsb.o.sub.An.spsb.⊖

wherein D is a phenyl, thiazolyl, benzthiazolyl, benzisothiazolyl, thiadiazolyl, pyrazolyl, indazolyl, imidazolyl, benzimidazolyl, triazolyl, benztriazolyl, pyridinyl, pyrazolopyridinyl, quinolinyl, or benzoxazolyl radical; K is a phenyl naphthyl, indolyl, aminopyrazolyl, dihydroindolyl, pyrazolyl, pyrazolonyl, indazolyl, imidazolyl; benzimidazolyl, benztriazolyl, benzisothiazolyl, benzthiazolyl, tetrahydroquinolinyl, or malonodintrilo radical; or the radical of a coupling component selected from the group consisting of acetoacetate, cyanoacetate, cyanoacetic acidamide and acetoacetic acid amide; m and n independently of one another are 1 or 2; An.sup.⊖ is an anion; R is

    --A--O--(B.sub.1 --O).sub.p --E;

    --A--O--CO--F--O--(B.sub.1 --O).sub.p --E.sub.1 ; or

    --A--(O--F).sub.p.sbsb.1 --CO--O--(B.sub.1 --O).sub.p --E;

A is C₂ -C₄ -alkylene unsubstituted or substituted with halogen, hydroxyl, C₁ -C₄ -alkoxy, or C₁ -C₄ -alkoxycarbonyl; or a direct bond;B₁ is C₂ -C₄ -alkylene; or C₂ -C₄ -alkylene substituted by halogen, C₁ -C₄ -alkoxy, hydroxyl, or C₁ -C₄ -alkoxycarbonyl; E is C₁ -C₆ -alkyl; C₂ -C₆ -alkenyl; C₁ -C₆ -alkyl substituted by cyano, halogen or C₁ -C₄ -alkoxy; cyclohexyl; cyclopentyl; cyclohexyl or cyclopentyl substituted by methyl; formyl; (C₁ -C₆ -alkyl)-carbonyl; (C₂ -C₆ -alkenyl)-carbonyl; (C₁ -C₆ -alkyl)carbonyl substituted in the alkyl group by cyano, halogen, or C₁ -C₄ -alkoxy; hydrogen; phenylcarbonyl; phenyl-(C₁ -C₆ -alkyl)-carbonyl; phenyloxy-(C₁ -C₆ -alkyl)-carbonyl; phenyl-(C₁ -C₆ -alkyl)-phenyl; or phenylcarbonyl, phenyl-(C₁ -C₆ -alkyl)-carbonyl, phenyloxy-(C₁ -C₆ -alkyl)-carbonyl, phenyl-(C₁ -C₆ -alkyl), or phenyl substituted in the phenyl by 1 or 2 members selected from the group consisting of C₁ -C₄ -alkyl, C₁ -C₄ -alkoxy and halogen; wherein the alkenyl groups are straight-chain or branched; F is C₁ -C₆ -alkylene; p is 1 to 3; and p₁ is 0 or 1;and wherein at least one of the radicals A or B₁ is substituted.
 2. Cationic dyestuff of claim 1 of the formula ##STR166## wherein R₂ is hydrogen; R; C₁ -C₆ -alkyl; C₁ -C₆ -alkenyl; C₁ -C₆ -alkyl or C₂ -C₆ -alkenyl substituted by halogen, cyano, aminocarbonyl, hydroxyl, C₁ -C₄ -alkoxy, C₁ -C₃ -alkoxy-carbonyl, C₁ -C₃ -alkylcarbonyloxy or phenoxy; benzyl; phenylethyl; benzyl or phenylethyl substituted by halogen, C₁ -C₄ -alkoxy, C₁ -C₄ -alkyl, or R; or one R₂ is N(R₂)₂ ; or two radicals R₂ conjointly are tetramethylene, pentamethylene or 3-aza- or 3-oxa-pentamethylene;Z is C₁ -C₃ -alkylene; K₁ is the radical of a benzene, naphthalene, indole, pyrazolone or aminopyrazole coupling component; p is 0 or 1; and the ring B is unsubstituted or mono- or di-substituted by C₁ -C₄ -alkyl, C₁ -C₄ -alkoxy, C₁ -C₄ -alkylsulphonyl, halogen, cyano, nitro or R.
 3. Cationic dyestuff of claim 1 of the formula ##STR167## containing 1 or 2 substituents R; wherein D is a phenyl; benzthiazolyl; benzisothiazolyl; 1,3,4-thiadiazolyl-(2); 1,2,4-thiadiazolyl-(5); 1,3-thiazolyl-(2); pyridinyl-(2); or pyridinyl-(4) radical;W₁ is straight-chain or branched C₂ -C₅ -alkylene; R₆ ' is hydrogen, R, C₁ -C₆ -alkyl; C₁ -C₆ -alkyl substituted by chlorine, bromine, cyano, hydroxyl, C₁ -C₄ -alkoxy, C₁ -C₄ -alkoxycarbonyl or C₁ -C₄ -alkylcarbonyloxy; C₃ -C₄ -alkenyl; or ##STR168## or R'₆ with N-W₁ -N-R₂ is piperazine; R₂ is hydrogen; R; C₁ -C₆ -alkyl; C₂ -C₆ -alkenyl; C₁ -C₆ -alkyl or C₂ -C₆ -alkenyl substituted by halogen, cyano, aminocarbonyl, hydroxyl; C₁ -C₄ -alkoxy, C₁ -C₃ -alkoxy-carbonyl, C₁ -C₃ -alkylcarbonyloxy or phenoxy; benzyl; phenylethyl; benzyl or phenylethyl substituted by halogen, C₁ -C₄ -alkoxy, C₁ -C₄ -alkyl or R; or one R₂ is N(R₂)₂ ; or two radicals R₂ conjointly are tetramethylene, pentamethylene or 3-aza- or 3-oxa-pentamethylene; and the ring B is unsubstituted or substituted by R, C₁ -C₅ -alkyl, C₁ -C₄ -alkoxy, halogen, phenyloxy, benzyloxy, C₁ -C₃ -alkylcarbonylamino, C₁ -C₃ -alkyl-sulphonylamino, C₁ -C₃ -alkylcarbonylamino, benzoylamino or phenylsulphonylamino.
 4. The dyestuff of claim 1, wherein at least one of the radicals A or B is substituted with hydroxyl.
 5. Cationic dyestuff of claim 1 of the formula ##STR169##
 6. Cationic dyestuff of claim 1 of the formula ##STR170##
 7. Cationic dyestuff of claim 1 of the formula ##STR171##
 8. Cationic dyestuff of claim 1 of the formula ##STR172##
 9. Cationic dyestuff of claim 1 of the formula ##STR173##
 10. Cationic dyestuff of claim 1 of the formula ##STR174## 